Repository navigation
[3.x] Leave control characters out of XML output and accept null values in MXSerializer - #385
Merged
Merged
Conversation
--------- Co-authored-by: Michael Osipov <1983-01-06@gmx.net> (cherry picked from commit c9d72affa12e1109be3003911af1b12e6d79026a) (cherry picked from commit be6885bef0ecf9e3636e93d8eb7863d48986a053)
https://issues.apache.org/jira/browse/MJAVADOC-793 (cherry picked from commit 43dbdca6780fd60371e63f7e94d938b482e2edc9) (cherry picked from commit b55ce82f298d5658d45a61611d4dad297ee2d524)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports two
MXSerializerfixes from plexus-xml to the 3.x line, which bundles its own copy of the XML classes and never received them:\n,\rand\tare left out of the output instead of failing withIllegalStateException: character 8 is not allowed in output(Remove special chars from xml output plexus-xml#28 by @slawekjaranowski and @michael-o).NullPointerException(Allow nulls for write elements in MXSerializer plexus-xml#29 by @garydgregory).Both commits are cherry-picked as authored and applied without conflicts. Please merge with "Rebase and merge" so their authorship is kept.
Verified:
mvn clean verify→ 482 tests, 0 failures; with the unpatchedMXSerializerandPrettyPrintXMLWriterthe ported tests fail (2 failures, 2 errors).